package com.sdsy.constant;

/**
 * 公有模块的错误码
 *
 * @author dengzhongyuan
 * @Description: ${todo}
 * @date 2018/3/28 11:46
 */
public enum ResultErrorInfo {

    /**** 公共的错误信息 ******/
    EMPTY_PARAMETER(10001, "參數為空"),

    EMPTY_ERROR(10002, "參數錯誤"),

    UNKNOWN(10003, "未知錯誤系統錯誤,請聯系維護人員"),
    VERSION_ERROR(10004, "數據正在處理中，請稍後重試"),  // 版本号不匹配
    DATA_IS_NULL(10005, "数据不存在"),

    // ---------------------------
    MER_NO_IS_NOT_EXIST(20001, "商户信息不存在"),
    CERT_IS_NOT_EXIST(20002, "签名证书不存在"),
    VERIFY_SIGN_ERROR(20003, "签名错误"),
    MER_ACCOUNT_IS_NOT_EXIST(20004, "商户账户不存在"),
    CENTER_FREE_NOT_ENOUGH(20005, "可用余額不足"),
    PAYMENT_ACCOUNT_IS_NOT_EXIST(20006, "银联代付账户不存在"),
    TRADE_NO_IS_EXIST(20007, "订单号重复提交"),
    ORDER_NO_IS_NOT_EXIST(20008, "订单号不存在"),
    PAY_MONEY_IS_ERROR(20009, "金额错误"),
    TRADE_MONEY_IS_ERROR(20010, "转账金额不在区间"),
    BATCH_NO_PAYMENT_FAIL(20011, "该批次确认支付失败"),
    USER_NAME_PASSWORD_FAIL(20012, "用户名或者密码错误"),

    /**
     * 分頁
     **/
    ONE_PAGE_INDEX(80001, "已是最第壹頁"),
    LAST_PAGE_INDEX(80002, "已是最後壹頁"),;

    ResultErrorInfo(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
